package com.gdupt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdupt.entity.CustomerLoss;
import com.gdupt.entity.SalesOpportunity;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 销售机会 销售机会 服务类
 * </p>
 *
 * @author gdupt
 * @since 2018-11-21
 */
public interface ISalesOpportunityService extends IService<SalesOpportunity> {
   // List<SalesOpportunity> lossPage(IPage page, @Param("sname") String sname,@Param("contact")String contact,@Param("people")String people);
   List<SalesOpportunity> lossPage(Map map);

    List<SalesOpportunity> lossList(IPage page);
    public boolean deletePlan(Integer id);
    boolean add(SalesOpportunity sa);
    boolean edit(SalesOpportunity sa);
    List<SalesOpportunity> lossListByName(IPage page);
}
